# 导入必要的库
import turtle

# 创建一个窗口
window = turtle.Screen()
window.title("Smiley Face")

# 创建一个画笔
pen = turtle.Turtle()
pen.hideturtle()  # 隐藏画笔

# 绘制黄色圆形作为脸部
pen.penup()
pen.goto(0, -100)  # 将画笔移动到屏幕中心底部
pen.pendown()
pen.begin_fill()
pen.color("yellow")
pen.circle(100)
pen.end_fill()

# 绘制黑色圆形眼睛
pen.penup()
pen.goto(-60, 25)
pen.pendown()
pen.begin_fill()
pen.color("black")
pen.circle(20)
pen.end_fill()
pen.penup()
pen.goto(60, 25)
pen.pendown()
pen.begin_fill()
pen.color("black")
pen.circle(20)
pen.end_fill()

# 绘制红色半圆弧嘴巴
pen.penup()
pen.goto(-60, -30)
pen.pendown()
pen.right(60)
pen.color("red")
pen.circle(70, 120)

# 关闭窗口
window.mainloop()
